<?php

namespace app\home\controller;
//修改了一下  把index  改为  home

use think\Controller;
use think\Request;

class HomeBasce extends Controller
{


    public $uid;
    public $user;

    public function __construct(Request $request = null)
    {

        parent::__construct($request);
        $this->uid = session('uid');
        $this->user = session('user');
        if (!$this->uid) {
            $this->redirect('/home/auth/login');
        }

    }

}
